const Detail = () => {
  return <h1>这是Detail页面</h1>;
};

// 加载的时候需要等2秒，为了测试loading
Detail.getInitialProps = () => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve({});
    }, 2000);
  });
};

export default Detail;
